package com.yuyuan.api.client;

import com.yuyuan.api.domain.NoticeDTOC;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import com.yuyuan.api.domain.EventDTOC;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author: kestrel
 * @Version:1.0
 * @Date: 2024/6/26
 */
@FeignClient("notice-service")
public interface NoticeClient {
    @PostMapping("/notice/client/insert")
    void insert(@RequestBody NoticeDTOC noticeDTOC);

    @PostMapping("/notice/client/fireEvent")
    void fireEvent(@RequestBody EventDTOC eventDTOC);
}
